@import './variables';


*{
    outline: none;
    box-sizing: border-box;
}
html{
    font-size: 16px;
    height: 100%;
}
h1,p{
    margin: 0;    
}

body{
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    background: #F6F6F6;
    -webkit-font-smoothing:antialiased;
    height: 100%;
    overflow-y: scroll;
}
a{
    color: #999;
}
.icon{
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}

@each $colorKey,$color in $colors {
    .text-#{$colorKey}{
        color: $color;
    }
    .bg-#{$colorKey}{
        background-color: $color;
    }
};

//text 
@each $var in (left,center,right) {
    .text-#{$var}{
        text-align: $var!important;
    }
}


//循环定义对应的字体大小工具类
@each $Key,$var in $font-sizes {
    .fs-#{$Key}{
        font-size:$var*$base-font-size ;
    }  
}
.text-ellipsis{
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.font-weight{
    font-weight: bold;
}


//flex布局
.d-flex{
    display: flex;
}

.flex-column{
    flex-direction: column;
}


@each $Key,$var in $jc{
    .jc-#{$Key}{
        justify-content: $var;
    }
}
@each $Key,$var in $ai{
    .ai-#{$Key}{
        align-items: $var;
    }
}

.flex-1{
    flex: 1;
}
.flex-wrap{
    flex-wrap: wrap;
}

.w-100{
    width: 100vw;
}
.h-100{
    height: 100vh;
}
// 遍历形成边距工具类 
@each $typeKey,$type in $space-type {
    @each $sizeKey,$size in $space-sizes {
        //m-1 => margin:0.25rem
        .#{$typeKey}-#{$sizeKey}{
            #{$type}:$size*$space-base-size;
        }
        // mx-1 => margin-left:0.25rem;margin-right:0.25rem
        .#{$typeKey}x-#{$sizeKey}{
            #{$type}-left:$size*$space-base-size;
            #{$type}-right:$size*$space-base-size;
        }
        .#{$typeKey}y-#{$sizeKey}{
            #{$type}-top:$size*$space-base-size;
            #{$type}-bottom:$size*$space-base-size;
        }
    }
    // .mt-1 => margin-top:0.25rem
    @each $direKey,$dire in $space-direction {
        @each $sizeKey,$size in $space-sizes {
            .#{$typeKey}#{$direKey}-#{$sizeKey}{
                #{$type}-#{$dire}:$size*$space-base-size;
            }
        }
    }
};

.box-s{
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 0 6px rgba(0, 0, 0, .04)
}
.card-s{
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(26,26,26,.1);
}

.cursor-point{
    cursor: pointer;
}
.cursor-point:hover{
    opacity: 0.8;
}

.border-b{
    border-bottom: 1px solid #f0f2f7;
}
.border-radius{
    border-radius: 3px;
}
.avatar{
    width: 55px;
    height: 55px;
    border-radius: 50%;
}
.MaxAvatar{
    width: 70px;
    height: 70px;
    border-radius: 50%;
}
.followBtn{
    border: 1px solid rgb(203, 56, 55);
    background-color: white;
    color: rgb(203, 56, 55);
    border-radius: 3px;
    min-width: 5rem;
    outline: none!important;
}
.followBtn:hover{
    color: white;
    background-color: rgb(203, 56, 55);
}
.followedBtn{
    min-width: 5rem;
    outline: none!important;
    border: 1px solid rgb(203, 56, 55);
    color: white;
    background-color: rgb(203, 56, 55);
    border-radius: 3px;
}
.InfoTitle{
    font-weight: bolder;
    cursor: pointer;
}
.InfoTitle:hover{
    transition: 200ms;
    color: rgb(203, 56, 55);
}

.isNull{
    filter: grayscale(100%);
}

.split{
    display: inline-block;
    width: 1px;
    height: 10px;
    margin: 0 6px;
    border-right: 1px solid #e1e1e1;
}
.rightCmps{
    // height: 99px;
    position: sticky;
    top: 61px;
}
// VUE 动画
/* 可以设置不同的进入和离开动画 */
/* 设置持续时间和动画函数 */
.slide-fade-enter-active {
    transition: all .3s ease;
  }
  .slide-fade-leave-active {
    display: none;
    // transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);
  }
  .slide-fade-enter, .slide-fade-leave-to
  /* .slide-fade-leave-active for below version 2.1.8 */ {
    transform: translateX(10px);
    opacity: 0;
  }
  
  
  .bounce-enter-active {
    animation: bounce-in .5s;
  }
  .bounce-leave-active {
    animation: bounce-in .5s reverse;
  }
  @keyframes bounce-in {
    0% {
      transform: scale(0);
    }
    50% {
      transform: scale(1.5);
    }
    100% {
      transform: scale(1);
    }
  }